package com.hmall.search.service;

import com.hmall.search.pojo.ItemDoc;
import com.hmall.search.pojo.PageResult;
import com.hmall.search.pojo.SearchParam;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;
import java.util.Map;

public interface SearchService {
    List<String> findItemBySuggestionKey(String key);

    Map<String, List<String>> filter(SearchParam searchParam);

    PageResult<ItemDoc> findItemByParam(SearchParam searchParam);
}
